Cancelling Authorization
Cancelling an authorization
Use this endpoint to cancel an Automatic Pix authorization
Request
POST 'https://apisandbox.delbank.com.br/baas/api/v1/automatic-pix/authorizations/:identifier'
Headers
Name | Description |
---|---|
x-delbank-api-key | Required. API key |
Body
{
"id": "RR123456782024042912345678901",
"debtorDocument": "12345678000199",
"cancelReason": 6
}
Response
The status code 200
indicates success in the query.
Being succeeded, the return will have the following fields in Json format:
{
"id":"RR0435879820240605njua7shf40o",
"cancelId":"IC0435879820240605bcdb1fhn43a",
"cancelDate":"2024-06-13T10:10:06.101Z"
}
Fetch cancelled authorization
This endpoint will fetch a cancelled authorization
Request
GET 'https://apisandbox.delbank.com.br/baas/api/v1/automatic-pix/authorizations/:authorizationIdentifier/cancellations/:cancellationIdentifier'
Headers
Name | Description |
---|---|
x-delbank-api-key | Required. API key |
Path Parameters:
Name | Type | Description |
---|---|---|
authorizationIdentifier | string | Required. Authorization identifier |
cancellationIdentifier | string | Required. Cancelation identifier |
Response
The status code 200
indicates success in the query.
Being succeeded, the return will have the following fields in Json format:
{
"id":"RR0435879820240605njua7shf40o",
"cancelId":"IC0435879820240605bcdb1fhn43a",
"debtorDocument":77379362038,
"cancelReason":6,
"cancelDate":"2024-09-17T10:10:06.101Z",
"cancelStatus":0
}